import request from '@/utils/request'

// 查询评论点赞列表
export function listComments_likes(query) {
  return request({
    url: '/comments_likes/comments_likes/list',
    method: 'get',
    params: query
  })
}

// 查询评论点赞详细
export function getComments_likes(id) {
  return request({
    url: '/comments_likes/comments_likes/' + id,
    method: 'get'
  })
}

// 新增评论点赞
export function addComments_likes(data) {
  return request({
    url: '/comments_likes/comments_likes',
    method: 'post',
    data: data
  })
}

// 修改评论点赞
export function updateComments_likes(data) {
  return request({
    url: '/comments_likes/comments_likes',
    method: 'put',
    data: data
  })
}

// 删除评论点赞
export function delComments_likes(id) {
  return request({
    url: '/comments_likes/comments_likes/' + id,
    method: 'delete'
  })
}
